Use this expression:
Append(Left(Call.ConversationId,Length(Call.ConversationId) - Length(ToString(Flow.count))),ToString(Task.count))
Replace Flow.count with whatever counter you create. Then place an update data after every data action to increase your integer.
It must be a flow variable for global access.
------------------------------
Niel Vicente
DAMAC Properties Co. LLC
------------------------------
Original Message:
Sent: 07-26-2024 07:27
From: James Foster
Subject: Generate a GUID
Hi Niel,
Thanks for this, I think that makes sense. Would you happen to have an example expression that could achieve this? I'm struggling to figure out how to remove a single character from the GUID/conversation ID.
Regards,
James
------------------------------
James Foster
Connect Managed Services (UK) Limited
------------------------------
Original Message:
Sent: 07-26-2024 07:12
From: Niel Vicente
Subject: Generate a GUID
Hi James,
Use the same conversationId then and store in a task/flow variable.
Maintain another integer/numeric flow variable and concatenate to your conversationId before calling the API.
Then, update your counter variable and add 1 after the data action.
This ensures you concatenate a different number to your conversationId and make it unique.
To follow the GUID format just remove 1 character from the conversationId every time before concatenating.
Let me know if this helps
------------------------------
Niel Vicente
DAMAC Properties Co. LLC