converting GUID to String

Home Page Forums BizTalk 2004 – BizTalk 2010 converting GUID to String

Viewing 1 reply thread
  • Author
    Posts
    • #15850

      Hi,

      Does anyone know how can I convert a guid to a string using a message assignement shape?

       

      Thks.

       

    • #15906

      You can't?

       Message Assignment is used for exactly what you might guess, assigning to a message.  On the other hand if you put an Expression shape into your Orchestration then you can simply perform a .ToString() on your GUID variable and you should be good to go.

      If you're trying to assign the GUID to a message and need it as a string, simply create an Orchestration variable before hand, assign the .ToString() to that, and then use the variable in the Message Assignment shape.

      Tim Rayburn
      Principal Consultant, Sogeti USA LLC
      http://www.TimRayburn.net

      • #15999

        [quote user="trayburn"]

        If you're trying to assign the GUID to a message and need it as a string, simply create an Orchestration variable before hand, assign the .ToString() to that, and then use the variable in the Message Assignment shape.

        [/quote]

        Sorry for not reporting back. That was exaccly what I had to do. Eventhoug I had the .ToString() method in my "origin" it woud fail! I had to make a copy of it to a variable, and then use the xxx.ToString()  method to set the value to a promoted field! I don't understanf the need of an intermediary variable, but it's now working.
        Thks anyway.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.