How to populate of Catalog variable values on Catalog task form

Angshuman3
Mega Guru

I am having a catalog item which is having 3 fields [Name, Location, Contact] which is having its values like [Angshuman , India, E-Mail].

Now I want exact same values with field name to be imported on the Description field on the catalog task. How will this be possible?? If it will be possible using the workflow or we need to create any rule for the same?

 

Thanks & Regards,

Angshuman

1 ACCEPTED SOLUTION

Mihir Mohanta
Kilo Sage

In the catalog task activity of the workflow write down advanced script like

 

task.description ="Name is:" +current.variables.Name+".Product is:"+current.variables.Product ;

 

Use the variable names in place of bold text as per your need

View solution in original post

8 REPLIES 8

Yes. If catalog item is different for both the tasks, it will populate the corresponding fields.


Please mark this response as correct or helpful if it assisted you with your question.

I guess I didn't clear it to you.....

So, the scenario is there is a Catalog named A which has 2 catalog task associated with it 1 & 2....

Now there are fields in Catalog task such as Name Product Location Contact....

I want field name & its values [Name & Product] to be populated in Catalog Task 1 , Description Field.

and in Catalog Task 2 [Location & Contact] field name & values should get populated in the Description Field.

 

Will the same be achievable using the BR, or we can write some script in the workflow?

Yes. Better to use it on Catalog Task activity in the workflow while creating the catalog task.

In the advance script

task.description = 'Name: '+current.variables.name+'\nProduct: '+current.variables.product.getDisplayValue();

 

Similarly for task 2

 

task.description = 'Location: '+current.variables.location.getDisplayValue()+'\nContact: '+current.variables.contact.getDisplayValue();


Please mark this response as correct or helpful if it assisted you with your question.

Mihir Mohanta
Kilo Sage

In the catalog task activity of the workflow write down advanced script like

 

task.description ="Name is:" +current.variables.Name+".Product is:"+current.variables.Product ;

 

Use the variable names in place of bold text as per your need