Skip to main content
Answer

Custom Endpoints for Restriction by GL and Restriction by Branch

  • June 10, 2024
  • 2 replies
  • 57 views

vidyakeerthik
Freshman II
Forum|alt.badge.img

Hello everyone,

Would like to check if anyone tried the custom Endpoints for the following screens to update data on the screen. We created custom endpoints as shown in the below screenshots, however when trying to update the Restriction groups through Postman using custom endpoints, it gives an error as shown in the following screenshots.

Appreciate any input to resolve the errors specified below.

Custom endpoints created for the screens  - Restriction Group by GL, Restriction Group by Branch

Screenshots for Custom endpoints:

Request used:

Restriction Group by GL

{
    "AccountCD": {
        "value": "10100"
    },
    "Type": {
        "value": "Asset"
    },
    "Description": {
        "value": "Petty Cash"
    },
    "AccountClass": {
        "value": "CASHASSET - CASH AND CASH EQUIVALENTS"
    },
    "GroupName": {
        "value": "International Customers"
    },
    "GroupType": {
        "value": "A"
    },
    "Included": {
        "value": "true"
    }
}

RestrictionGroupsbyBranch

Request used:

{

        "BranchCD": {

            "value": "PRODRETAIL"

        },

        "PostingLedger": {

            "value": "ACTUAL - Actual Ledger"

        },

        "Details": [

            {

             

                "GroupName": {

                    "value": "Fixed Asset Account Branch Access"

                },

               

                "Description": {

                    "value": "Limit Fixed Asset Accounts to HQ"

                },

               

                "Active": {

                    "value": "false"

                },

                "Included": {

                    "value": "true"

                },

                "GroupType": {

                    "value": "A"

                }        

               

            }

           

        ]

     

    }

 

 

 

 

Thanks & Regards,

Vidyakeerthi K

Best answer by jinin

Hi @vidyakeerthik ,

Please make the GET call for the entity. Upon receiving the response, you will obtain the ID. Use this ID to update the individual records accordingly. It should work.

 

2 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • June 12, 2024

Hi @vidyakeerthik ,

Please make the GET call for the entity. Upon receiving the response, you will obtain the ID. Use this ID to update the individual records accordingly. It should work.

 


vidyakeerthik
Freshman II
Forum|alt.badge.img
  • Author
  • Freshman II
  • June 12, 2024

@jinin 

Thank you for your response and for sharing inputs.

Yes, we have also tried the same thing and it worked. 

 

Thanks & Regards,

Vidyakeerthi K