Skip to main content
Solved

How to get workflow instance id in the workflow itself

  • February 3, 2025
  • 7 replies
  • 69 views

Forum|alt.badge.img+4

Hi, I need to get the current workflow id in a variable. This will be used to create an api link for “Wait for Signal” step.

Best answer by Pawan Gangwani

Servesh wrote:

@Pawan Gangwani I’m getting an all numeric output. I need the workflow guid. Do we have a documentation of all the _context properties available? I could not find any in the docs.

@Servesh Use this method, I think that's what you are looking for.

Use this universal syntax: <%#System.Uid%>
 

in Result it will be link this.
 

 

View Original
Is this content helpful?

7 replies

Pawan Gangwani
Rising Star
Forum|alt.badge.img+13

Hello ​@Servesh 

Welcome to the DocuSign Community!

For getting the workflow Instance ID in the variable you will have use c#. Sharing the c# code here:

Code:  [ return _context.ExecutionID; ]

Let me know, if you need any further assistance.

Thanks! Mark it best


Forum|alt.badge.img+4
  • Author
  • New Voice
  • 12 replies
  • February 4, 2025

Thank you ​@Pawan Gangwani 🙌


Forum|alt.badge.img+4
  • Author
  • New Voice
  • 12 replies
  • February 4, 2025

@Pawan Gangwani I’m getting an all numeric output. I need the workflow guid. Do we have a documentation of all the _context properties available? I could not find any in the docs.


Pawan Gangwani
Rising Star
Forum|alt.badge.img+13

@Servesh you mentioned workflow instance id right, so workflow instance ID is the numeric value.
 


I want to confirm that you need workflow link? or something else can you please provide me with any example?  


Pawan Gangwani
Rising Star
Forum|alt.badge.img+13
  • Rising Star
  • 420 replies
  • Answer
  • February 4, 2025
Servesh wrote:

@Pawan Gangwani I’m getting an all numeric output. I need the workflow guid. Do we have a documentation of all the _context properties available? I could not find any in the docs.

@Servesh Use this method, I think that's what you are looking for.

Use this universal syntax: <%#System.Uid%>
 

in Result it will be link this.
 

 


Forum|alt.badge.img+4
  • Author
  • New Voice
  • 12 replies
  • February 4, 2025

@Pawan Gangwani thank you this is exactly what I needed.


Pawan Gangwani
Rising Star
Forum|alt.badge.img+13
Servesh wrote:

@Pawan Gangwani thank you this is exactly what I needed.

You're welcome, glad it helped!😃


Reply