Skip to content

Instantly share code, notes, and snippets.

@tzmfreedom
Created September 13, 2014 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzmfreedom/27bff9b4fff19c024d84 to your computer and use it in GitHub Desktop.
Save tzmfreedom/27bff9b4fff19c024d84 to your computer and use it in GitHub Desktop.
Dim ws As Worksheet
Set ws = Worksheets("CreateObject")
Dim createObjectBody As String
createObjectBody = sfc.CREATE_OBJECT
createObjectBody = Replace(createObjectBody, "{{sessionId}}", sessionId)
createObjectBody = Replace(createObjectBody, "{{fullName}}", ws.Cells(3, 2))
createObjectBody = Replace(createObjectBody, "{{deploymentStatus}}", "Deployed")
createObjectBody = Replace(createObjectBody, "{{description}}", ws.Cells(6, 2))
createObjectBody = Replace(createObjectBody, "{{label}}", ws.Cells(1, 2))
createObjectBody = Replace(createObjectBody, "{{nameField.label}}", ws.Cells(4, 2))
createObjectBody = Replace(createObjectBody, "{{nameField.length}}", "80")
createObjectBody = Replace(createObjectBody, "{{nameField.type}}", ws.Cells(5, 2))
createObjectBody = Replace(createObjectBody, "{{pluralLabel}}", ws.Cells(2, 2))
createObjectBody = Replace(createObjectBody, "{{sharingModel}}", ws.Cells(7, 2))
Debug.Print createObjectBody
Dim responseObjectBody As String
responseObjectBody = callSoap(instanceUrl & "/services/Soap/m/30.0/" & orgId, createObjectBody)
Debug.Print responseObjectBody
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment