Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Get the ui language when an entity form is sent

(0) ShareShare
ReportReport
Posted on by

Hi, is it possible to send the ui language from a portal entity form to the server? Maybe by using entity form metadata or something like this?

When we receive the submitted form on D365/CDS side a workflow is triggered and a confirmation email is send to the user (anonymous, enters email adress in form). We want to send the confirmation email in the language, in that the form was sent.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Get the ui language when an entity form is sent

    Yeah, that is exactly what I was up to build. I created a field for the entity which the portal users create records for. My code gets the current language, searches in the list of portal languages and sets that determined portal language as the value of my custom field.

    {% assign languagecode = website.selected_language.code %}
    {% fetchxml portallanguage %}
    
      
        
        
        
        
          
        
      
    
    {% endfetchxml %}
    
    {% assign portallanguageId = portallanguage.results.entities[0].adx_portallanguageid %}
    {% assign portallanguageName = portallanguage.results.entities[0].adx_name %}
    
    

    While this appears to be working good, the lookup control for my portal language lookup field does not show any results.

    pastedimage1579182150055v1.png

    Inside D365 on the form the lookup control works as expceted:

    pastedimage1579184149167v1.png

    I even played around with creating an entity list with odata feed and entity permissions and everything, but the lookup control just doesn't want to show a list of portal languages. In the odata feed however the results are showing up as expected.

    pastedimage1579182361364v2.png

    Is this some strange security behauvior around the adx_portallanguage entity or something like this? In fact it wouldn't even bother me, since in the end I will hide this field on the form, so the user won't even interact with it, but the fact that this control behaves so strange, makes me wonder if there is something wrong...

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Get the ui language when an entity form is sent

    Hi,

    I don't there is metadata attribute for the language code but you can use liquid and maybe you can create entity attribute in your entity which can store the language code from liquid and in the workflow you can check what is the language code.

    docs.microsoft.com/.../liquid-objects

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 61 Most Valuable Professional

#3
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans