Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

idekaresearch
Community profile idekaresearch Level 2
Job title here
Location here
6 BADGES
Level 2

Level 2

Learn more
Joined the community 06-09-2019 12:24:22 PM
Offline
Top badges earned by idekaresearch
Customize the badges you want to showcase on your profile
Re: Sort Order parameter for Dynamics 365 API call
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
Thanks for the code snippet.I tried this code already; the callback function was not getting called. It seems like either an unsupported API with a 4th parameter, or has since been deprecated.The Adobe documentation does not indicate support for a callback function.I am using AEM v6.4.5

Views

871

Likes

0

Replies

0
Re: Sort Order parameter for Dynamics 365 API call
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
The returned JSON is abstracted away from me as I am using the Adobe guidelib.dataIntegrationUtils libraries. The returned JSON is not available to use when binding to a drop-down list.

Views

862

Likes

0

Replies

0
Re: Sort Order parameter for Dynamics 365 API call
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
Yes, the Option text and value need to be different. The text needs to be sorted alphabetically, whereas the Option value represents the Entity ID (guid).

Views

867

Likes

0

Replies

0
Sort Order parameter for Dynamics 365 API call
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
I am using AEM Forms and connecting form elements to Microsoft Dynamics 365.I use the Form Data Model to create API endpoints to connect with the specific Dynamics 365 entities I am interested in.The problem I am facing is that the data returned from a Dynamics 365 entity is not in the order I require. The data coming back has a default sort order by created date; I need the data sorted alphabetically to populate a drop-down list.The APIs in Microsoft Dynamics 365 allow for an Order By parameter...

Views

1.6K

Likes

0

Replies

7
Re: AEM Forms drop-down list localization
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
Here is the final code hat works in the drop-down list initialization:------------------------------------------------------------------------------------------var operationInfo = { "formDataModelId": "/content/dam/formsanddocuments-fdm/ms-dynamics-fdm", "operationTitle": "GET salutation /salutations", "operationName": "GET salutation /salutations_15592508761020"};var inputs = {};var outputs;var str = window.location.href.toLowerCase();var matches = str.match(/afacceptlang=([^&]*)/); // extract ...

Views

1.1K

Likes

0

Replies

0
Re: AEM Forms drop-down list localization
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
I use the Visual Editor to bind the list once.Seems like the below should work in the Code Editor data-bindingif(languageParameter='en') {var operationInfo = { "formDataModelId": "/content/dam/formsanddocuments-fdm/ms-dynamics-fdm", "operationTitle": "GET salutation /salutations", "operationName": "GET salutation /salutations_15592508761020"};var inputs = {};var outputs={ savedValue:'salutationid', displayedValue:'name_en', field:this};guidelib.dataIntegrationUtils.setOptionsFromService(operatio...

Views

987

Likes

0

Replies

0
AEM Forms drop-down list localization
Avatar
Give Back 5
Level 2
idekaresearch
Level 2

Likes

0 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Validate 1
View profile
idekaresearch
- Adobe Experience Manager Forms
I am binding a drop-down list to an Entity in MS Dynamics. The data is just reference look-up data. I need to fetch either the English or French data from the Entity based on the language the user selects in the User Interface. e.g. list of countries in either English or FrenchIn the Forms editor, when binding a drop-down list to REST endpoint, the Display Value must be selected from the list of available fields from the endpoint. This basically hard-codes the returned values to just a single la...

Views

1.3K

Likes

0

Replies

4