Column definition mapping 'uniqueidentifier '

Certified Lead Developer
Is there any by which I can map Sql server database row with data type 'uniqueidentifier ' with appian column.

OriginalPostID-245193

  Discussion posts and replies are publicly visible

Parents
  • Hello Ajinkya, Below is the code snippet, I was able to insert value from Appian to Unique Identifier of MS SQL:

    executequery(cons!DATABASE, "INSERT INTO Employoee (
    AttachmentId,
    RequestId,
    CustomerId,
    )
    VALUES (
    NEWID(),
    CONVERT(uniqueidentifier,'"&ri!RequestId&"'),
    CONVERT(uniqueidentifier,'"&ri!CustomerId&"')
    )")
    Where both rule inputs are of type text, passed from a process model to this rule.
Reply
  • Hello Ajinkya, Below is the code snippet, I was able to insert value from Appian to Unique Identifier of MS SQL:

    executequery(cons!DATABASE, "INSERT INTO Employoee (
    AttachmentId,
    RequestId,
    CustomerId,
    )
    VALUES (
    NEWID(),
    CONVERT(uniqueidentifier,'"&ri!RequestId&"'),
    CONVERT(uniqueidentifier,'"&ri!CustomerId&"')
    )")
    Where both rule inputs are of type text, passed from a process model to this rule.
Children