Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OFSC-OSvC integration using ICS migration script not working

edited Jan 7, 2020 2:53AM in Field Service

Summary

Migration script not working

Content

Hi Everyone,

We are currently implementing connection in OFSC to OSvC using ICS. I'm following the documentation named "OFSC-OSvC integration using ICS" . There is a certain step in OSvC configuration to migrate resource from OFSC to OSvC using the migration script that must be executed in microsoft powershell, but is not working on my end. Can anyone help me on how to proceed on this one? Thank you.

Regards,

Allen Joshua Montano

Code Snippet

# Powershell script to get Resources from OFSC and to create it on OSvC

#Read config file
$config=get-content "config.txt"

$ofscHOST = $config | select-string 'ofscEndPoint' | %{$_.line.split('=')} | select -first 1 -skip 1
$ofscCOMPANY = $config | select-string 'ofscCompanyName' | %{$_.line.split('=')} | select -first 1 -skip 1
$ofscUSER = $config | select-string 'ofscUserName' | %{$_.line.split('=')} | select -first 1 -skip 1
$ofscPWD = $config | select-string 'ofscPassword' | %{$_.line.split('=')} | select -first 1 -skip 1
$osvcHOST = $config | select-string 'osvcEndPoint' | %{$_.line.split('=')} | select -first 1 -skip 1
$osvcUSER = $config | select-string 'osvcUserName' | %{$_.line.split('=')} | select -first 1 -skip 1
$osvcPWD = $config | select-string 'osvcPassword'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!