diff --git a/.github/workflows/sandboxResumeCreation.yml b/.github/workflows/sandboxResumeCreation.yml index 5ee183b..3fc2d08 100644 --- a/.github/workflows/sandboxResumeCreation.yml +++ b/.github/workflows/sandboxResumeCreation.yml @@ -65,12 +65,18 @@ jobs: - name: Getting org info id: getOrgInfo run: | - echo "ORG_INFO_RESULT=$(sf org display --target-org ${{ vars.USERNAME }}.${{ inputs.sandboxName }} --json)" + ORG_INFO_RESULT=$(sf org display --target-org ${{ vars.USERNAME }}.${{ inputs.sandboxName }} --json) + ORG_INFO_RESULT="${ORG_INFO_RESULT//'%'/'%25'}" + ORG_INFO_RESULT="${ORG_INFO_RESULT//$'\n'/'%0A'}" + ORG_INFO_RESULT="${ORG_INFO_RESULT//$'\r'/'%0D'}" - name: Getting Profile Id id: getProfileId run: | echo "PROFILE_ID_RESULT=$(curl ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.instanceUrl }}/services/data/v58.0/query?q=SELECT+Id+FROM+Profile+WHERE+Name='System+Administrator' -H 'Authorization Bearer ${{ fromJson(steps.getOrgInfo.outputs.ORG_INFO_RESULT).result.accessToken }}' -H 'Content-Type: application/json\')" + PROFILE_ID_RESULT="${PROFILE_ID_RESULT//'%'/'%25'}" + PROFILE_ID_RESULT="${PROFILE_ID_RESULT//$'\n'/'%0A'}" + PROFILE_ID_RESULT="${PROFILE_ID_RESULT//$'\r'/'%0D'}" - name: Creating User record id: createUser diff --git a/user.json b/user.json new file mode 100644 index 0000000..43d2695 --- /dev/null +++ b/user.json @@ -0,0 +1,12 @@ +{ + "Username": "tnascimento@salesforce.com.dev1.00DHp000001tRQqMAM", + "FirstName": "Tiago", + "LastName": "Nascimento", + "Email": "tnascimento@salesforce.com", + "Alias": "Tiago", + "TimeZoneSidKey": "America/Sao_Paulo", + "LocaleSidKey": "pt_BR", + "EmailEncodingKey": "UTF-8", + "ProfileId": "00eHp000002OQMuIAO", + "LanguageLocaleKey": "en_US" +} \ No newline at end of file