You need to sign in to do that
Don't have an account?

TRIGGER WRITTING
I have two object name is mobile__c and shutdown__c both object have connection to one field bachno_c
and there are two typs of record mobile1 and mobile2 in the field call module__c
so for that if record is mobile1 and in shutdown__c we have one field shutdown_type if i put if stop value it will change to start
for the record mobile2 it will not change anything how to write trigger for that???
[1] https://appexchange.salesforce.com/developers
@mike_13223435 : This community is meant for guiding and helping . Start writing the trigger by taking help from Salesforce resources .
http://www.salesforcetutorial.com/apex-trigger-in-salesforce/
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm
Let us know if you are struck somehwere .
Can you please elaborate your question? For any assistance you can check the trailhead modules on Triggers.
https://developer.salesforce.com/trailhead/module/apex_triggers
Regards,
Deepthi
This code is changing ms1 for stop to start and not changing ms2 for stop to start...
NOTE: This code has not been tested and may contain typographical or logical errors
The code above will update the Options__c to 'Start' if there is a matching Series__c with an 'ms1' but not an 'ms2'. If there is just an 'ms2' or no matching Series__c, the Options__c will remained unchanged. The way it is currently written, this will only affect Mobile__c that are inserted with an Options__c of 'Stop' or have the Options__c changed from anything to 'Stop'. You can modify that logic by altering lines 9-11.