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
arjuna Rajput 29arjuna Rajput 29 

Using Flows Create task on Opportunity

using flows create a task on opportunity if task exist then update and otherwise create.
Using Screen Flows
PriyaPriya (Salesforce Developers) 


Hello,
 
So here are the steps;
 
1. Go to Setup > Flows > New Flow > Record-triggered Flow > Auto Layout
 
2. Select the Object as Opportunity and Trigger as "A record is updated". Set the Condition as RFI_Responses_are_Due__c is Changed TRUE and leave the other options as default.
 User-added image
 
3. Use the + to add a new Get Records Component to fetch the related Task Record. I would suggest setting it up like this (based on the new checkbox field).
 User-added image
 
4. Use the + to add a Update Record element that is configured like this.
5. Once you are Done press the Save button, give your Flow a label press Save and then press Activate.
User-added image

Kindly mark it as best answer if it works for you.

Regards,

Priya Ranjan