Error while Calling Custom method using Ajax

We have created GetValue() method in  dll SalesForceCommunityQ for fetching data from Database and render it in tabular form in the administrator plugin editor.

public static string GetValue()
    Some code here to get data from database

This method is called using Ajax in same dll in the below source code.


public string GetConfigurationHtml(string apiJson)
    return string.Format(@"
<script type='text/javascript'>
            function GetData(){{
                        data: {{}},
                        contentType: 'application/json; charset = utf-8',
                        dataType: 'json',
                        success: function(_data) {{
    ", apiJson);

However we are getting below error.

ERROR: Failed to load resource: the server responded with a status of 404()/SalesForceCommunityQ/GetValue:1 )

What is the url value we need to use here?
We reffered the link(

Updated code
[edited by: Mahesh Mundra at 12:00 PM (GMT 0) on Wed, Oct 12 2022]
Parents Reply Children