I am following the steps mentioned on this link to create custom connectors inside Power Platform:-
https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank
and the following steps to consume/use this custom connector inside Power Apps:-
https://docs.microsoft.com/en-us/connectors/custom-connectors/use-custom-connector-powerapps
But i have the following two questions:-
1) Now in the custom connector, to be able to submit the data from the Power Apps form to the custom connector, we will need to manually pass the data, as follow:-
ClearCollect(sentimentCollection, SentimentDemo.DetectSentiment(
{id:"1", language:"en", text:TextInput1.Text}).documents.score)
so is there an easier way to do this, by just submitting the form and have the all data inside the form's fields submitted automatically? Something similar to how the built-in SharePoint connector works?. Where we can send the form data to the SharePoint connector by writing this formula `SubmitForm(formname)` without having to manually map/specify the fields?
2) Second question. When using the built-in SharePoint connector, we can add a form inside our Power Apps (let say Canvas App) >> Define the form's source to be the SharePoint list >> Where Power Apps will automatically add all the list's fields inside the form. But in the custom connector case, we will have to manually built the form's fields. So is there a way to have our custom connector works in the same way as the SharePoint built-in connector works regarding this point?
Thanks.
@timlOk thanks a lot for your very helpful .. I were hoping that we can make our custom connector more user friendly.. but at-least i am now sure that what i am doing is the best that we can get from custom connectors..
I hate to be bearer of bad news, especially as you've so eloquently described the problem scenario, but the answer to these two questions is no.
There's no way to set the data source of a form to a custom connector and to call SubmitForm, nor is there a way to automatically list the fields from a custom connector in a form.
Microsoft are improving "custom connector" features, particularly with "dynamic schema" in 2022 Wave 1, but I'm not aware of any upcoming changes to address the two issues you mention.
https://docs.microsoft.com/en-us/power-platform-release-plan/2022wave1/
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional