Service back records

Certified Senior Developer

Hello Everyone,

We have a use case where in we need to nightly refresh our look up tables( truncate existing data and update if integgration is success)on daily basis.


As our application is record centric I am planning to use service backed record to external system.However I have below questions to clarify before I proceed.

Do we need to hit the API twice? once to check if it’s success and second to populate the record?

To truncate the existing data I am thinking to use delete records.

Also, Unsure how serviceback record handles if integration fails.

Please let me if this approach is suggestable for the above use case.

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    If you want to move to Service backed records , For your case you need to consider the below things.

    To truncate the existing data I am thinking to use delete records.

    I don't think Delete Records is the right option . Write a store procedure which truncates the data . (Delete records works like Delete statement in SQL ,Primary key is not going to start from 1).  

    You need to do Full Sync after , So Make sure timing of Full Sync (Yogi's Suggestion) comes after Schedular .

    Do we need to hit the API twice? once to check if it’s success and second to populate the record?

    There is a limitation on API call for data syncing , You can sync Only 1000 rows for one hit , So you need to process it in batches if data is heavy. Refer Documentation about this. 

     https://docs.appian.com/suite/help/23.1/generate-web-api.html#overview

    Also, Unsure how serviceback record handles if integration fails.

    I think this you can handle it in Web Api expression itself Based  on error codes. 

     

Reply
  • 0
    Certified Senior Developer

    If you want to move to Service backed records , For your case you need to consider the below things.

    To truncate the existing data I am thinking to use delete records.

    I don't think Delete Records is the right option . Write a store procedure which truncates the data . (Delete records works like Delete statement in SQL ,Primary key is not going to start from 1).  

    You need to do Full Sync after , So Make sure timing of Full Sync (Yogi's Suggestion) comes after Schedular .

    Do we need to hit the API twice? once to check if it’s success and second to populate the record?

    There is a limitation on API call for data syncing , You can sync Only 1000 rows for one hit , So you need to process it in batches if data is heavy. Refer Documentation about this. 

     https://docs.appian.com/suite/help/23.1/generate-web-api.html#overview

    Also, Unsure how serviceback record handles if integration fails.

    I think this you can handle it in Web Api expression itself Based  on error codes. 

     

Children