Get Channels: Method not found: 'Void Microsoft.Graph.BaseRequest.set_Method(System.String)'

Hi,

I am trying to send a message to a user and trying to capture the response. But I can’t be able to do it. I Installed UiPath.Team.Activities pacakge by UiPath, i used all activities inside microsoft team scope, I am getting the error as: Get Channels: Method not found: ‘Void Microsoft.Graph.BaseRequest.set_Method(System.String)’. in activites like get chat, get chat members, send message.

Can anyone tell me what are the exact(Pattern) values need to be send in propeties like:
Team ID:
ChatID:
ChannelID:

and also I am getting package error as:

22.12.0-beta.11471+Branch.release-v22.12.0.Sha.d2325c659238e9a5bce4ec0fa2d550b0024490cb

Could not load type ‘Microsoft.Graph.EnumConverter’ from assembly ‘Microsoft.Graph.Core, Version=1.23.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.

Error: System.Exception: Could not load type ‘Microsoft.Graph.EnumConverter’ from assembly ‘Microsoft.Graph.Core, Version=1.23.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.
at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
at System.RuntimeType.GetCustomAttributes(Boolean inherit)
at UiPath.Studio.Plugin.Workflow.Extensions.BusinessTypeExtensions.GetTypeConverter(Type sourceType)
at UiPath.Studio.Plugin.Workflow.Extensions.BusinessTypeExtensions.IsCompatibleWithTargetType(Type targetType, Type proposedType)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.DefaultExpressionPopupButtonOptions.GetPropertySpecificOptions(ModelProperty property)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.RegularExpressionPopupButtonOptions.GetPropertySpecificOptions(ModelProperty property)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.ExpressionPopupButtonViewModel.GetInlineOption()
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.RegularExpressionTextBox.RegularExpressionTextBoxComponentProvider.GetEditorDecoratorFor(ExpressionActivityEditor nativeEditor)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.RegularExpressionTextBox.RegularExpressionTextBoxView.UpdateWithEditor(ExpressionActivityEditor editor, ExpressionTextBox parent)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.RegularExpressionTextBox.RegularExpressionTextBoxView.ApplyTo(ExpressionTextBox etb, ModelProperty modelProperty, ICustomExpressionTextBoxComponentProvider componentProvider, IExpressionTextBoxUtils expressionTextBoxUtils)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.RegularExpressionTextBox.RegularExpressionTextBoxLookAndFeel.SetupEditor(ExpressionTextBox expressionTextBox)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.RegularExpressionTextBox.RegularExpressionTextBoxLookAndFeel.<>c__DisplayClass10_0.b__0()
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 -2146233054

TIA
Vi

@loginerror , please help…

Hi @Vi_Quad,

The error message you are receiving indicates that there may be compatibility issues between the version of the Microsoft Graph API used by the UiPath.Team.Activities package and the version of the Microsoft Graph API installed on your system.

To resolve the issue, you could try updating the UiPath.Team.Activities package to the latest version and also updating the Microsoft Graph API to the latest version available. You could also try downgrading to a lower version of the UiPath.Team.Activities package that is compatible with the version of the Microsoft Graph API installed on your system.

Regarding the exact values that need to be sent in the properties like Team ID, Chat ID, and Channel ID, these values will depend on the specific team, chat, and channel that you are trying to send the message to. You will need to retrieve these values using the appropriate Microsoft Graph API endpoints or by inspecting the URLs used by the Microsoft Teams web app. Once you have these values, you can use them in the corresponding properties of the UiPath.Team.Activities package activities.

Happy Automation, Cheers!

1 Like

Hi Abhimanyu,

Thanks for the response, I tried with different versions of the package but I am still facing the same issue. and about the API’s, how can we generate this external API end points?

Regards
Vi

Which version of the Teams package was this issue present on?
I would hope this issue to be resolved with the latest version of the activity package.