function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mukul shah 14mukul shah 14 

Workflow/Trigger creation

I have an requirement where we are integrating SFDC with HR app and sending Account and Contact information from SFDC to HR App.

As per solution design is i have to create a button on account and contact which would push the data to HR app.
And a pick list field Status : New, Modified, Submitted and Synced

New     –  default value when client record is created. When user clicks on the button the status should be changed to ‘Submitted’ and WF will trigger
Modified – when record is modified, and when user clicks on the button the status should be changed to ‘Submitted’ and WF will trigger
Submitted – will be used as trigger for the WF
Synched – Will be updated by the Jitterbit response and the button should not be active. 
          The button should be active only for New or Modified status. We may need to write a trigger to do that. 

Can someone pls help me how to proceed with this configuration/workflow and trigger?