Question

How to convert Cannot convert type "Guid" to "String"

Hello All,

Can I convert type "Guid" to "String"  and vice-versa in business process if  yes then how?

File attachments

Like

3 comments

Hi Amol,

It's possible to convert the type using c# format, for example, in the formula element. 

It will look like:

[#Parameter#].ToString() or [#Text#].ToGuid()

Best regards,

Lily

 

Lily Johnson,

I got the following to work:

Guid.Parse("90e08cc8-73f6-41ee-b7c9-39f2cd330cb8")

 

Hello,

If you have an Id of the Lookup field then you need to get its Name. To do it, you can use EntitySchemaQuery in the script task (example 3 here)

Show all comments