Bilesh Ganguly
Bilesh Ganguly

Reputation: 4131

Workday: Put_Customer returning an error

We are using Snaplogic to load records into workday. Currently, extracting customer records from the source and trying to load them into workday using the object Put_Customer of web service Revenue_Management.

I was getting the following error:

Without Customer Category Reference

But I'm not getting any category information from the source. So, I tried putting the value for Customer_Category_Reference as 1. But I ended up getting the following error.

With Customer Category Reference value as 1

The documentation for workday is not helpful and this has been a blocker for me for some time now.

Any help will be appreciated.


Update:

Trying to get customer categories using the Get_Customer_Categories object of Revenue_Management web service using Snaplogic. But getting the following error:

Failure: Soap fault, Reason: Processing error occurred. The task submitted is not authorized., Resolution: Address SOAP fault message and retry

Upvotes: 0

Views: 1727

Answers (2)

cdonner
cdonner

Reputation: 37698

If you look at the API documentation, you will find that Put_Customer accepts a WID in the Customer_WWS_Data object. If you search for "Customer Categories" in Workday, you will likely find the report of the same name. Just select the category that you want your newly loaded customers to default to (click on the magnifying class, then on the ellipsis, Integration Ids, View Ids). The Workday ID will appear at the top.

I have not used the Revenue Management API, but my code for creating a position reference in the Compensation API is probably very similar to what you need to do for the Customer Category reference:

public static Position_ElementObjectType getPositionReference(string WID) {

            return new Position_ElementObjectType {
                ID = new Position_ElementObjectIDType[] {
                    new Position_ElementObjectIDType {
                        type = "WID",
                        Value = WID
                    }
                }
            };
    }

Upvotes: 1

dbh
dbh

Reputation: 1627

Unfortunately I don't have access to a tenant at this time to validate . However it is likely to work based in prior experience . Perhaps you could create a customer in Workday, through the GUI. Then do get customer API call. Note the category reference . Then, use that in your put customer call

Upvotes: 1

Related Questions