top of page
Writer's pictureTony Ogilvie

Pinning Matters for Users using the Intapp Documents API

In this short video, we'll see how you can use the Intapp Documents (formerly Repstor custodian) API to pinning Matters (corresponding to SharePoint Document Libraries) for Users using the Intapp Documents API.


You can find the MacOS Shell script that I used in the video below, but of course you can use your own scripting technology!


Shell Script

while IFS=, read -r matterCode


do
    
    truncateMatterCode=${matterCode//$'\r'/}
    ((counter=counter+1))
    echo "\n$counter Pinning Matter Code :$truncateMatterCode"


curl -X POST --header "Content-Type: application/json" --header "APIKey: XXX" --header "Accept: application/json" -d "{ 'Users': ['tony.ogilvie@otagem.com'], 'Type': 'Matter', 'Code': '$truncateMatterCode', 'SPHostUrl': 'https://otagem.sharepoint.com/sites/TESTSITE-00019'}" "https://custodian01.repstor.com/api2/My/AddByCode"




done < mattercodes.csv
       
Echo "\n\nCOMPLETE"

Sample Matter Code CSV

00012
00013
00014
00015
00016
00017
00018
00019

58 views0 comments

Comments


Otagem Logo Wider.png
bottom of page