top of page

Pinning Matters for Users using the Intapp Documents API

Writer's picture: Tony OgilvieTony Ogilvie

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

64 views0 comments
Otagem Logo Wider.png
Microsoft 365 Logo.png
SharePoint.png
Teams.png
PowerApps.png
PowerAutomate.png

© Otagem Consulting Limited 2014 - 2024

bottom of page