Skip to main content

 A record-triggered flow should update a custom field called (number_of_email_sent_c) on the lead object whenever an email is sent to a lead.

how to use the formula to increase the number so the custom field will increment by 1 whenever the flow gets triggered? I'm stuck with this flow, Please help me how to approach this.

 

#Flow  #Automation

Flow on Email message object

 

Screen Shot 2022-06-04 at 9.42.46 AM.png

 

Screen Shot 2022-06-04 at 9.43.31 AM.png

 

#flow
7 risposte
  1. Andrew Russo (BACA Systems) Forum Ambassador
    4 giu 2022, 14:47

    in flow add these start conditions

     

    RelatedToId       starts with      00Q

    Incoming             equals             False

     

    then do a get records to get the lead that has an id that matches the record that started the flows relatedtoid

    ID      Equals      {!$Record.RelatedToId}

     

    then so an assigment element to add 1 to the record you just located

     

    {!GetLead.customnumberfield__c} ADD     1

     

    then do an update records and say update a record variable then select the record you found in the get records.

0/9000