You need to sign in to do that
Don't have an account?
Victor Apolinario
Apex - Set Contact Status
Hi,
I´ll leave some pictures below of a process builder I created that I really need to change it into a Apex trigger. If someone knows this please give this hand, it will be a gigantic help.
I´ll leave some pictures below of a process builder I created that I really need to change it into a Apex trigger. If someone knows this please give this hand, it will be a gigantic help.
A small change in the trigger .
Thanks,
All Answers
Can you explain this in words like what you are doing in first decision box and first update and same in the second one as the screenshot is not clear.
So I can share trigger logic for the same.
Thanks,
So basically in the Rent object we´re checking if the Status equals the string 'Late'. If that is true, the Contact Status will change to Defaulting in the picklist.
If not, we´re going to check if the Rent Status equals the string 'Finished', and if that is true the Contact Status will change to Normal in the picklist.
I hope now it´s more clear to you.
Thanks for confirming on it. Can you confirm when is this process Builder Triggering. Only on create or only on update . can you confirm that as well.
Thanks,
I´m really not sure, but I believe it´s on update.
Because in my mind the item will be rented and that should be the trigger to change the status.
Does that make sense for you too?
Can you try below triger logic on Rent object.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
A small change in the trigger .
Thanks,