+ Start a Discussion
azar khasimazar khasim 

Parsing data from a Text field and Update different fields.

I need some help to overcome the issue.

Process is 
In opportunity object, Opportunity Owner will update a Chatter Post (Activities -- Post)
Then by use of Process builder we are creating a Task Record.


Now For example:
In Chatter Post(Body) we will type like in below


Send 150 Samples.
Product :  Diode  , Qty : 3 , Date : 14/05/2020


hereby using PB we are updating Chatter body in Task Description Field.

Now we want to autoupdate 
DueDate : as 14/05/2020 (Dynamically based on different records)
Qty : Dynamically
Product : Dynamically

By Using Parsing method.

Please provide me a solution for this.

Either through Apex Coding or through Formula field.
Anyway no problem.

Thanks and Regards,
Azar Khasim.
ShirishaShirisha (Salesforce Developers) 
Hi Azar,

Greetings!

In order to update particular fields dynamically formula field might not help.So,I would suggest you to create workflow rules to update the fields based on the criteria or I would suggest you to try a code using @invocable methods and use the apex class in the process builder to trigger the action.

reference:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm

https://salesforce.stackexchange.com/questions/107345/how-invocable-method-and-bulk-behavior-in-process-builder-work

​​​​​​​Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri