Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Subscription PATCH Call not working for updating a value at subscription level

Summary:

Unable to update value of attribute "XX_OSS_RemainingChillers_c" via REST API both via groovy. Getting error " Invocation of service URL used in connection failed with status code 411 Length Required."

Content (please ensure you mask any confidential information):

Version (include the version you are using, if applicable):

Code Snippet (add any code snippets that support your topic, if applicable):

        def headers4 = ['REST-Framework-Version':'8']
        def Payload = [XX_OSS_RemainingChillers_c:finalVal]
        WService4 = adf.webServices.XX_OSS_UpdateRemainingChillers
        WService4.requestHTTPHeaders = headers4

After adding header as → def headers4=['Content-Type' :'application/json','Content-Length':'4094'] then also error was coming.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!