I've been using the OneDrive Create share link action in a Power App triggered flow for users to get a CSV file generated by the flow.
The link type is Direct and the link scope is Organization:

A few days ago this flow began to fail at this step. The error message is very long:
{
"error": {
"code": 502,
"source": "australia-001.azure-apim.net",
"clientRequestId": "ca5b0308-bcbc-4280-8144-b77652cc1c4a",
"message": "BadGateway",
"innerError": {
"status": 500,
"message": "Exception occured. Message: The method or operation is not implemented.. Full: System.NotImplementedException: The method or operation is not implemented.\r\n at OneDriveConnector.Providers.OneDriveFileDataProvider.<CreateShareLink>d__15.MoveNext() in D:\\a\\_work\\1\\s\\OneDriveConnector\\Providers\\OneDriveFileDataProvider.cs:line 570\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at OneDriveConnector.Controllers.Flow.OneDriveFileDataController.<CreateShareLinkAsync>d__4.MoveNext() in D:\\a\\_work\\1\\s\\OneDriveConnector\\Controllers\\Flow\\OneDriveFileDataController.cs:line 218\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__1`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()",
"source": "api.connectorp.svc.ms"
}
}
}
If I change the link type to View the action succeeds, but the link it returns to the app opens in Excel Online which is not what I want (they should get a download).
If I add the same action again, Direct is not in the list of link types.
Has this been deprecated? If so, what's the best practice alternative when I want to create a link to download the file? The app has B2B guest users accessing it and I don't want to use any premium connectors.
TIA.