on 2023 Dec 18 11:34 AM
Dear community,
while connecting a custom application to CPQ using the REST-API I figured out that I need to observe the user's individual numberformat (especially: decimal separator) when sending (POST) values to CPQ. This means that when I want to send 1234.56 while logged in as a users with EU numberformat, I litereally have to send it as a string "1234,56". Is this a bug or a feature?
If it's a feature, how can I (with the help of the API) figure out the current setting of the logged on user?
I found the endpoint "GET /setup/api/v1/admin/users/{id}" but this obviously fails for non-admin users. Then there's "GET /api/rd/v1/UserPersonalization/GetInitData" which shows me all available numberformats, but not the one chosen by the user.
Can you help me?
Request clarification before answering.
Hi moritz.geisberger ,
I suppose there are two approaches to resolving the problem:
Best Regards
Fancy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Yoga, thanks for your reply! What a surprise that my consultant from June is answering this question 🙂
Unfortunately I do not really get your answer - maybe I have to explain my issue with more detail:
Let's assume the "Default Number Format" is set to "1,234.56" as in your picture, but for my individual user account I changed it to "1.234,56". Now I have added a QuoteTable with a numeric column (let's call it "TestColumn"). When I want to add data to it via the API (POST /api/v1/quotes/{{QuoteID}}/quoteTables/LHT_Opportunity_Sync/rows), I use the following payload:
{"ColumnName": "TestColumn", "Value": 1234.56}
However, when I now open the quote and the my QuoteTable it shows 123.456,00 instead When I want to achieve the correct result (1.234,56) I have to use the following payload:
{"ColumnName": "TestColumn", "Value": "1234,56"}
Thanks again and best regards,
Moritz
User | Count |
---|---|
10 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.