Skip to main content
Skip table of contents

Refresh Client ID & Client Secret

Each year, the Client ID and Client Secret (created through the add-in) need to be refreshed in order to secure the connection between Salesforce & SharePoint.

To refresh these, you have 2 options:

Recreate the Add-in by following the steps as described in the ‘AZURE App Configuration’ section.
by following the following steps in the Powershell:

  1. Run the Powershell on your windows computer

  2. Once opened, you need to log in into your environment. Execute the following command and you will get a prompt to enter your credentials (picture A):

  3. A pop-up will appear that directs you to the Microsoft login page.

  4. Enter your credentials.

  5. If you are logged in successfully, you will receive no message in the powershell

  6. Copy the following script and paste into the PowerShell (picture B). Press enter:
    $clientId = ‘<enter existing clientID>‘$bytes = New-Object Byte[] 32
    $rand = [System.Security.Cryptography.RandomNumberGenerator]::Create()
    $rand.Dispose()$newClientSecret = [System.Convert]::ToBase64String($bytes)
    $dtStart = [System.DateTime]::Now
    $dtEnd = $dtStart.AddYears(1)
    New-MsolServicePrincipalCredential -AppPrincipalId $clientId -Type Symmetric -Usage Sign -Value $newClientSecret -StartDate $dtStart -EndDate $dtEnd
    New-MsolServicePrincipalCredential -AppPrincipalId $clientId -Type Symmetric -Usage Verify -Value $newClientSecret -StartDate $dtStart -EndDate $dtEnd
    New-MsolServicePrincipalCredential -AppPrincipalId $clientId -Type Password -Usage Verify -Value $newClientSecret -StartDate $dtStart -EndDate $dtEnd

  7. You will receive a refreshed Client Secret which you can use in the 24Files app (picture C).

Picture A

Picture B

Picture C

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.