I did not be able to find some documentation but I found another support post maybe it can help you to see the way they code this function to make it work:
Also, if you do not find the solution with this, you should share what you did to permit other members to help you