Perform end-to-end Operations in Google Directory

The following example pipeline demonstrates the use of the Google Directory Insert, Update, Patch, Read, and Delete Snaps in a complete process, from record insertion to deletion at the endpoint.



Download this Pipeline
  1. Configure the Mapper Snap with the primaryEmail, familyName, and givenName fields as follows:
    mapper-1-configuration
  2. Configure the Google Directory Insert Snap to insert specific details of the user. On validation, the output displays the email ID, familyName, and givenName values, which indicate that these values are inserted in the Google Directory.
  3. Configure the Mapper Snap to pass the primaryEmail.
  4. Connect the Mapper Snap with the Copy Snap to create four copies of the output.
  5. Configure the Script Snaps at the output views of the Copy Snap to halt the pipeline for a specified time (100 seconds) to provide some delay between different operations such as update, patch, read, and delete.
  6. Perform the Update, Patch, Read, and Delete operations on the output documents from the Copy Snap.

    First output view: Configure the Mapper Snap to get the primary email ID from the Copy Snap and update the familyName and givenName fields.

  7. Configure the Google Directory Update Snap to update the values in the record for the specified primary email ID. On validation, the Snap displays the updated values.
    Table 1.
  8. Second output view: Configure the Mapper Snap to get the primary email ID and update the familyName, giveName, and recovery email ID fields.
  9. Configure the Google Directory Update Snap with patch action to update the values in the record for the specified primary email ID. On validation, the Snap displays the updated values.
    Table 2.
  10. Third output view:Configure the Google Directory Read Snap to read the record with the primary email ID updated in the Google Directory Insert Snap. On validation, the inserted record displays in the output.
    Table 3.
  11. Fourth output view: Configure the Mapper Snap to get the primary email ID from the fourth output view of the Copy Snap and the email ID to the Google Directory Delete Snap.
  12. Configure the Google Directory Delete Snap to delete the record for the passed primary email ID. On validation, the Snap displays the success message after deleting the record.
    Table 4.
To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.