Skip to content

Commit

Permalink
working the syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagonnascimento committed Dec 6, 2023
1 parent 91d9490 commit 21ca7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sandboxResumeCreation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Creating User record
id: createUser
run: |
echo "USER_CREATE_RESULT=$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v59.0/sobjects/User/ -H 'Authorization: Bearer ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.accessToken }}' -H 'Content-Type: application/json' -X POST -d '{\"Username\": ${{ inputs.username }},\"FirstName\":\"Sandbox\",\"LastName\":\"Owner\",\"Email\": ${{ inputs.email }} ,\"Alias\":\"sbxown\",\"TimeZoneSidKey\":\"America/Sao_Paulo\",\"LocaleSidKey\":\"pt_BR\",\"EmailEncodingKey\":\"UTF-8\",\"ProfileId\":\"00eHp000002OQMuIAO\",\"LanguageLocaleKey\":\"en_US\"}')" >> $GITHUB_OUTPUT
echo "USER_CREATE_RESULT=$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v59.0/sobjects/User/ -H 'Authorization: Bearer ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.accessToken }}' -H 'Content-Type: application/json' -X POST -d '{''Username'': ${{ inputs.username }},''FirstName'':''Sandbox'',''LastName'':''Owner'',''Email'': ${{ inputs.email }} ,''Alias'':''sbxown'',''TimeZoneSidKey'':''America/Sao_Paulo'',''LocaleSidKey'':''pt_BR'',''EmailEncodingKey'':''UTF-8'',''ProfileId'': ${{ fromJson(steps.getProfileId.outputs.PROFILE_ID_RESULT).records[0].Id }},''LanguageLocaleKey'':''en_US''}')" >> $GITHUB_OUTPUT
- name: Post creation steps
if: github.event.inputs.buildfile != ''
Expand Down

0 comments on commit 21ca7a1

Please sign in to comment.