How to send email via sendgrid uipath connector

I have connected the SendGrid connector on Orchestrator. However it is impossible to find a decent tutorial or documentation for sending email via studio.

Currently I’m getting this error when using the “Send Email” activity.

image


Log Dump
22.10.5+Branch.support-v22.10.Sha.79bc7c61a909d990afd07620b3005b3a35eb1f1b

Exception has been thrown by the target of an invocation.

Error: System.Exception: Exception has been thrown by the target of an invocation.
—> System.Exception: Could not load type ‘System.Activities.ViewModels.Interfaces.IBusyService’ from assembly ‘System.Activities.ViewModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.
at UiPath.IntegrationCore.Activities.Services.ViewModelServiceFactory.GetWorkflowBusyService(IDesignServices designServices)
at UiPath.IntegrationCore.Activities.NetCore.ViewModels.BaseClasses.ClientBaseViewModel…ctor(IDesignServices services)
at UiPath.IntegrationCore.Activities.NetCore.ViewModels.BaseClasses.BusinessEntityBaseViewModel…ctor(IDesignServices services)
at UiPath.IntegrationCore.Activities.NetCore.ViewModels.UploadFileViewModel…ctor(IDesignServices services)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture)
at System.Activator.CreateInstance(Type type, Object args)
at UiPath.Studio.Plugin.Workflow.Presentation.ActivityViewModelService.CreateViewModel(ModelItem modelItem)
at UiPath.Studio.Plugin.Workflow.Presentation.ActivityViewModel.ConnectWithMetadata()
at UiPath.Studio.Plugin.Workflow.Presentation.ActivityViewModel.ConnectAsync(ModelItem modelItem)
at UiPath.Studio.Plugin.Workflow.Presentation.DefaultActivityDesigner.OnDataContextChanged(Object sender, DependencyPropertyChangedEventArgs e)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146232828

I’m guessing this is the culprit, but has someone got it to work with this version still?

image

@NiesonF

Mostly it can be the studio version as the error says viewmodels…

In the manage packages when you install in most cases they would mention minimum studio version needed

Apart from that as per error with viewmodels happen when the system packages are not compatible…o try to change the system package to different version and check…but again it is not recommended to use higher version of system packages than studio version …as they can cause other activities to fail

Cheers