Execute sql functions

Hi All,

How can be execute sql server table valued functions from appian ? Are there any plug-ins available for the same ?

Thanks and regards,

Ishani Joshi

  Discussion posts and replies are publicly visible

Parents Reply
  • I agree with Christine, this should be handled natively in Appian without writing your own SQL statement. And even if you get the SQL to work, you could have other issues too - what would happen if you have two people submit at the same time? You may not be guaranteed to get the next value in the sequence.

    If your concern is that you need to make sure each address is associated with the correct contact, there's plenty of other ways to do that:

    • Create another CDT which stores the index of the parent and child on clicking the submit button. For example, you could have a CDT (that doesn't actually have an associated table) that just stores the contact index and the address index. Then, use two separate writes: one to the contact table and one to the address table. Since you have kept the list of both indexes, you should be able to associate the correct contact ID to the address as a foreign key.
    • Use nested CDTs. These can get complex, but this is one of the main use cases for using nested CDTs. If you have address nested inside of contact, it's now easy to understand which addresses are associated with each contact.
Children