Python 'Replace' or 'find' functions are not working in Azure functions

Vivek Mishra 11 Reputation points Microsoft Employee
2021-02-14T10:19:59.237+00:00

Python's 'replace' or 'find' functions looks to be not working in Azure function. I am trying below code:

if (entity['name']).find(message) != -1 :

Where entity['name'] value is 'finder Scope Matrix' and message value is 'finder Scope'. So ideally the message string is a part of entity['name'] value. But is always returns false.

It works in the local system.

entity['name'] is text value send from team's outgoing webhook.

Any help?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.