Hi,
I'm trying to create some agent scripts.
and I try a simple step , a text instruction step.
with this code:
Subject: {anchor._subjectid_value@OData.Community.Display.V1.FormattedValue}
{anchor.title}
{anchor.incidentid}
{$odata.incident.prioritycode.?$filter=incidentid eq '{anchor.incidentid}'&$select=prioritycode}
{$odata.incident.title.?$filter=incidentid eq '{anchor.incidentid}'&$select=title}
which results this:
Subject: Product
question about the product
b9aaee53-fb28-488d-a8a1-098bc3e97838
the first 3 slugs commands are parsed properly.
but the odata accesses return the slug tag and not the slug evaluated value.
I can see in the console log that the slug command call the CRM, retrieve the prioritycode and title fields, but at the end what is displayed to the end user:
thanks.
I tried that.
its not working the caseId is not replaced by the value.
but my problem is that :
the slugs expression '{anchor.incidentid}' is correctly resolve and returned.
than the parent slug expression
{$odata.incident.prioritycode.?$filter=incidentid eq 'b9aaee53-fb28-488d-a8a1-098bc3e97838'&$select=prioritycode}
is also resolved (I opend the debug console and saw the values properly solved)
but...
the final output displays the expression itself:
{$odata.incident.prioritycode.?$filter=incidentid eq 'b9aaee53-fb28-488d-a8a1-098bc3e97838'&$select=prioritycode}
instead of the result of this expression, which should by "high" in this case.
Hi,
Please try the following expressions:
{$odata.incident.prioritycode.?$filter=incidentid eq '{caseId}'&$select=prioritycode}
{$odata.incident.title.?$filter=incidentid eq '{caseId}'&$select=title}
{caseId} is the unique ID of a case. The system displays the case ID only if the case is linked to the conversation.
Ref - Use automation dictionary to pass parameter keys | Microsoft Docs
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27