question

valeriefoxdigi avatar image
valeriefoxdigi asked ·

Power Apps - Collection Data not retrieved properly from custom connector

Hi there,

I am trying to create the PowerApps sample app provided in the documentation on the Fusion Creator Dev platform.

https://developer.fusionfabric.cloud/documentation?workspace=FusionCreator%20Developer%20Portal&board=Home&uri=sample-client-powerapps.html

I have created the 3 custom connectors, including ConsumerProfile calling the Consumer Profile FFDC API. Test goes well: consumer requests returns all the details of one consumer including first name, last name, dob, address, email address, phones...

On PowerApps, the datasource ConsumerProfile is present, and my screen's action is "ClearCollect(CustomerData, ConsumerProfile.consumer())" on visible. When I go to View Collections though, CustomerData only has 1 line and 3 attributes only: Text (empty), CoreIdentifications (empty) and dateOfBirth (only one filled in with correct value). Therefore, on my screen, I cannot display the firstname or lastname of the consumer as this field does not exist in the collection.

Any chance someone has an idea of the issue?

10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

valeriefoxdigi avatar image
valeriefoxdigi answered ·

Re-created all the custom connectors, connections and link to PowerApps, it seems to work now... !

Share
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

valeriefoxdigi avatar image
valeriefoxdigi answered ·

Custom connector seems to be fine, I do get this following result when calling 'consumer':

********************************************************

{

"firstName": "Hermitage",

"lastName": "Sally",

"dateOfBirth": "1995-07-08",

"addresses": [

{

"streetLine_1": "56 CRESCENT EXECUTIVE COURT",

"city": "LAKE MARY",

"state": "FL",

"postalCode": "32762",

"addressType": "physical"

}

],

"emails": [

{

"address": "test@test.com",

"emailType": "primary"

}

],

"phones": [

{

"number": "2235551234",

"phoneType": "home"

},

{

"number": "2235551234",

"phoneType": "mobile"

}

]

}


*********************************************************************************

In PowerApps, when I call the clearcollect, it just does not retrieve the data for some reason, only the dateOfbirth as below:



1560900111268.png (40.4 KiB)
Share
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

laurent.chollet avatar image
laurent.chollet answered ·

Hi Valerie,

please first test this endpoint directly at custom connector side, section 4.test

to check it returns the expected data with user ffdcuser1 (check also the video https://www.fusionfabric.cloud/resources/developer-tutorials/leveraging-fusionfabriccloud-apis-microsoft-powerapps )

Then, when calling ClearCollect(CustomerData, ConsumerProfile.consumer()) with a alive connection, it should create a collection CustomerData you can visualize in Collections.

rgds,

Laurent


1560843439458.png (30.5 KiB)
2 comments Share
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Thanks a lot Laurent! I will try that today.

0 Likes 0 · ·

Actually, I have done the test on the custom connector side already, I do get all the information about Sally Hermitage, dob, adresses, phones... I will check the video...

0 Likes 0 · ·