I have created a connection from logic app ui to connect to an instance(Dynamics ERP) to 'list items present in table' I have selected authentication via service principal and provided the appid, appsecret etc. on looking at the json view of the connection i can see below under properties
"parameterValues": { "token:clientId": "8543874-dummyvalue" "token:TenantId": "87435-afd" "token:grantType": "client_credentials"}
Please help with the bicep for this connection
this link has resolved my issue. I have replaced with the below
parameterValues: {
'token:clientId': ClientId
'token:clientSecret': ClientSecret
'token:TenantId': subscription().tenantId
'token:grantType': client_credentials
}