@RobE That should work, the one difference between what you have and what they use in their module is
# Env is not set in the module.ps1 or we would not need to set it.
$env:RepairTechSyncroApiUrl = 'https://{subdomain}.syncroapi.com'
$SyncroApiUrl = $env:RepairTechSyncroApiUrl
As this is only used one place in the script your FQDN will work fine, BUT they appear to have done it to make it easier to interchange subdomains throughout the script so you may want to consider using that String for the SyncroAPIUrl.
Sorry that post could have been written more clearly.
(I’m on mobile so sorry in advance for lack of formatting(
The line $SyncroApiUrl = $env:RepairTechSyncroApiUrltype
was pulled from Syncro’s module.ps1. I was trying to show why I was recommending formatting the URL the way I was, but didn’t write it up to well.
Ohhh, gotcha. They’re now expecting {subdomain} as a hard string that THEY can replace internally. I was effectively doing their job for them, which still worked, but could theoretically bite me later if they change something in Kabuto/Syncro plumbing separation they’re up to.
This is very strange. The one liner that just was updated for screenshots works (so far) only when I happen to be using some kind of remote desktop connection. My own PC and a laptop don’t. The laptop has a fresh install of Syncro. How do I troubleshoot the error? @RobE
I’ve never seen a difference between remote desktop and in-person.
BUT, I sometimes have trouble with Syncro not refreshing its system tray settings on some assets. I usually troubleshoot by adding a period to the end of the command name. If that period doesn’t show up, then I know the underlying command hasn’t synced out either. To “jiggle the handle”, sometimes I’ll move that asset out/back into the container that assigns the systray settings.
Sorry if I am late to this party, but what is the use case for allowing an end user to upload a file to an asset? Aside from screensot which they can already do from the tray icon ticket module, I can’t think of any reason to do that
I’m still getting an error on this. I recopied the original one liner from here, put the stuff in needed and still. It can’t seem to save it. I wish I could be more helpful on why this isn’t working.
Ben, are you getting any error messages? Probably not, since it handles them with the user-dumbed down “please try again” (needed since Syncro sometimes just times out on their upload).
Here’s a simplified/tested version of the critical bits (prep, then screenshot, then upload) – just paste into a powershell prompt:
May sound like a stupid question, but do you have a c:\temp folder? Just glanced over the script and don’t see any validation that the folder exist and to create if not.
She’s talking about the portal. If you make a script available in the portal it’s available to all that have portal access. You can customize it per customer/site/person like you could if it was a system tray item.
Maybe im misunderstanding, usually I can start typing and it’ll pull up the scripts that are in the system, but for Execute a CMD it doesnt look to those?