Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Insert Customer Name with Special Characters using API Page

Posted on by 316

Hi,

I have a POST request to create a customer with special characters in its name using API. I created an API page of customer and published it. 

When I am sending a POST request with special characters, its not creating it correctly. I am testing with Postman and below are my results.

pastedimage1676359485717v1.png


How can this be done? Do I need to add any header value?


Categories:
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Insert Customer Name with Special Characters using API Page

    You can ignore to define the caption of field here.

  • Ramiz Profile Picture
    Ramiz 316 on at
    RE: Insert Customer Name with Special Characters using API Page

    I am using standard customer table behind the API but what I noticed, In my API page it was mentioned as name not Name.

    pastedimage1676436491224v1.png

    I think its case sensitive but for now it works.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Insert Customer Name with Special Characters using API Page

    Its strange. Are you using standard Customer table behind the API?

  • Ramiz Profile Picture
    Ramiz 316 on at
    RE: Insert Customer Name with Special Characters using API Page

    Hi Nitin Verma 

    Its a strange thing for me but the problem got solved by putting the field name in LOWERCASE letters.

    previously my Json body was

    {
        "Name": "CANON ESPAÑA Nº1 5 €"
    }

    After changing it to the LOWERCASE it works fine.

    pastedimage1676385307578v1.png

    Thanks

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Insert Customer Name with Special Characters using API Page

    Yes, I am doing with standard one, if you are using custom one, you need to check what is wrong your side.

    Thanks.

  • Ramiz Profile Picture
    Ramiz 316 on at
    RE: Insert Customer Name with Special Characters using API Page

    Hi Nitin Verma

    I can see its working at your end. Have you used the standard customer api page? I am testing it with a custom created api page.

    Could that be the issue?

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Insert Customer Name with Special Characters using API Page

    In My side its working fine.

    Also its seems me wrong the url you are working

    the correct url is - api.businesscentral.dynamics.com/.../customers

    pastedimage1676361817840v3.png

    pastedimage1676361736923v2.png

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Insert Customer Name with Special Characters using API Page

    hi

    look this

    community.dynamics.com/.../api-filter-with-characters-in-display-name

    DAniele

  • Ramiz Profile Picture
    Ramiz 316 on at
    RE: Insert Customer Name with Special Characters using API Page

    Hi.

    Its CANON ESPAÑA Nº1 5 â‚¬.

    I am using it with Customer API as a name of Customer

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Insert Customer Name with Special Characters using API Page

    Give me your special characters in Txt format, let me try my side.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans