Web API Enabled Record Type

Certified Lead Developer

Hi Expert,

Can we use a POST integration API which actually queries data from a third party system to configure as a Sync Record Data Source, if yes  then how ?
I have created an expression to get the data using the integration object which is working fine in the Expression rule while throwing error on using the same in Record Type.

Thanks,

Gaurav Singh

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to Mathieu Drouin

    I wish to share the complete details but will make me to find another Job Lolz.. Stuck out tongue

    This is how it looks like but contains more attributes.

    {
    profiles: {
    {
    id: "some value",
    uid: "uid",
    name: "test",
    profile_type_id: "some value",
    status: "Active",
    id_proofing_status: "pending",
    updated_at: fn!datetime(2024, 10, 14, 17, 43, 37, 40),
    created_at: fn!datetime(2022, 5, 17, 0, 36, 59, 0),
    attributes: {
    security_id: "",
    confirm_start_of_audit_ne_attribute: "Yes",
    personal_last_name: "Bourne",
    .
    .
    .
    few more attributes
    .
    .
    .
    }
    },
    {
    id: "some value",
    uid: "uid",
    name: "test",
    profile_type_id: "some value",
    status: "Active",
    id_proofing_status: "pending",
    updated_at: fn!datetime(2024, 10, 14, 17, 43, 37, 40),
    created_at: fn!datetime(2022, 5, 17, 0, 36, 59, 0),
    attributes: {
    security_id: "",
    confirm_start_of_audit_ne_attribute: "Yes",
    personal_last_name: "Chase"
    .
    .
    .
    few more attributes
    .
    .
    .
    }
    }
    }
    }

  • +1
    Certified Lead Developer
    in reply to GauravSingh

    I have a feeling it's just because you have to drill down in the nesting. Service Backed Record type structures don't support nested attributes, your data structure need to be flat.

    Source Data:

    Record Data Source:

    Record Type:

  • 0
    Certified Lead Developer
    in reply to Mathieu Drouin

    Hi Mathieu,

    Thanks for your help, it actually solve my problem to a great extent.

    Will it be anyway possible that I can get "id" and "status" value along with other parameter which are nested under the attribute i.e. security_id, confirm_start_of_audit_ne_attribute, personal_last_name etc under the same record.

  • 0
    Certified Lead Developer
    in reply to GauravSingh

    ideally this is fixed at the source (whoever is providing the API). They should return a flat structure.

    Alternatively, you could create your own flat structure by iterating on the list (using forEach) which is not very efficient but doable.