• Thangamani Nachimuthu 7
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Hi Experts,
  Pls provide your comments on the below idea which i had submitted on Trailblazer community.
Idea:-Add/Provide AI Prediction Checkbox to Text/Text Area Data type field

Url to Browse:https://success.salesforce.com
Hello Experts,
    Can anyone guide me that where i can submit my blog in salesforce community?

Regards,
Thangamani
Dear Sales Force Experts,
      I would request your help in this regard.I have submitted ideas in Trailblazer community and i would like everyone to see and suggest your comments on the same.Below are the links to view my ideas.
Idea 1:-Display the field usage in Fields & Relationships under Object manager
Idea 2:-Add/Provide AI Prediction Checkbox to Text/Text Area Data type field
Idea 3:-Built-in apex design pattern

URL to Browse:https://success.salesforce.com

Regards,
Thangamani
 
Hi Team,
   Can someone help me to provide me the steps to submit my technical blogs to publish in the salesforce developers community?

Regards,
Thangamani
Hi Experts,
  Pls provide your comments on the below idea which i had submitted on Trailblazer community.
Idea:-Add/Provide AI Prediction Checkbox to Text/Text Area Data type field

Url to Browse:https://success.salesforce.com
Dear Sales Force Experts,
      I would request your help in this regard.I have submitted ideas in Trailblazer community and i would like everyone to see and suggest your comments on the same.Below are the links to view my ideas.
Idea 1:-Display the field usage in Fields & Relationships under Object manager
Idea 2:-Add/Provide AI Prediction Checkbox to Text/Text Area Data type field
Idea 3:-Built-in apex design pattern

URL to Browse:https://success.salesforce.com

Regards,
Thangamani
 
Please help me resolve this challenge:

https://trailhead.salesforce.com/modules/apex_integration_services/units/apex_integration_soap_callouts

The Challenge is as follows:

Generate an Apex class using WSDL2Apex and write a test class.
Generate an Apex class using WSDL2Apex for a SOAP web service, write unit tests that achieve 100% code coverage for the class using a mock response, and run your Apex tests.

Use WSDL2Apex to generate a class called 'ParkService' in public scope using this WSDL file. After you click the 'Parse WSDL' button don't forget to change the name of the Apex Class Name from 'parksServices' to 'ParkService'.
Create a class called 'ParkLocator' that has a 'country' method that uses the 'ParkService' class and returns an array of available park names for a particular country passed to the web service. Possible country names that can be passed to the web service include Germany, India, Japan and United States.
Create a test class named ParkLocatorTest that uses a mock class called ParkServiceMock to mock the callout response.
The unit tests must cover all lines of code included in the ParkLocator class, resulting in 100% code coverage.
Run your test class at least once (via 'Run All' tests the Developer Console) before attempting to verify this challenge.

The error I receive when checking the challencge is:

Challenge Not yet complete... here's what's wrong:
Executing the 'country' method on 'ParkLocator' failed. Make sure the method exists with the name 'country', is public and static, accepts a String and returns an array of Strings from the web service.

Here is the code I am using:
public class ParkLocator {
    public static String[] country(String ctry) {
        ParkService.ParksImplPort prk = 
            new ParkService.ParksImplPort();
        return prk.byCountry(ctry);
    }
}

and
 
@isTest
global class ParkServiceMock implements WebServiceMock {
   global void doInvoke(
           Object stub,
           Object request,
           Map<String, Object> response,
           String endpoint,
           String soapAction,
           String requestName,
           String responseNS,
           String responseName,
           String responseType) {
        // start - specify the response you want to send
        ParkService.byCountryResponse response_x = 
            new ParkService.byCountryResponse();
            
        List<String> myStrings = new List<String> {'Park1','Park2','Park3'};
    
        response_x.return_x = myStrings;
        // end
        response.put('response_x', response_x); 
   }
}

and
 
@isTest
private class ParkLocatorTest  {
    @isTest static void testCallout() {              
        // This causes a fake response to be generated
        Test.setMock(WebServiceMock.class, new ParkServiceMock());
        // Call the method that invokes a callout
        List<String> result = new List<String>();
        List<String> expectedvalue = new List<String>{'Park1','Park2','Park3'};
        
        result = ParkLocator.country('India');
        // Verify that a fake result is returned
        System.assertEquals(expectedvalue, result); 
    }
}

Any help which can be provided is greatly appreciated.  If you could advise me at raadams173@gmail.com if you reply with a solution, I can log in to check it.

Thanks.

Ryan