Skip to main content
Participating Frequently
Nov 15, 2023 7:41 AM UTC
Question

Integration call WebAPI to save data got error

I've created an WebAPI to save data by a!writeRecords(by WebAPI creation wizard)

it worked fine when I test it by "TEST REQUEST" button, but when I call it by an Integrations, got error of

{"message":"Write request has failed","error":"The input \"Records\" refers to an invalid record type. The record type does not exist, has been deleted, or the user does not have sufficient privileges to access the data."}

I have create a Service Account, add SA to the security config with Administrator permission, to all objects, include WebAPI, RecordType

Also add the API Key(Appian-API-Key) to Connected System.

Can anyone help me?

    3 replies

    stefanhelzle0001
    Brainy
    Nov 15, 2023 7:50 AM UTC

    First, providing admin permissions to a service account is probably not a good idea.

    Did you check the tomcat-stdout log file for any details?

    Did you check permissions of the connected system used in the record data source?

    Participating Frequently
    Nov 15, 2023 8:00 AM UTC

    How to check permissions of the connected system used in the record data source?

    stefanhelzle0001
    Brainy
    Nov 15, 2023 9:01 AM UTC

    Did you check the tomcat-stdout log file for any details?

    That record uses some sort of data source. Probably the MariaDB aka Cloud Database. The connection to it is defined using a connected system object.

    Find the general info about record security here: https://docs.appian.com/suite/help/23.4/appian-records-security.html

    And connected system security here: docs.appian.com/.../Connected_System_Object.html