Giter Club home page Giter Club logo

Comments (4)

georged avatar georged commented on May 24, 2024

@cbpatel17
attachments in CRM are 64bit encoded
HTH

from php-crm-toolkit.

cbpatel17 avatar cbpatel17 commented on May 24, 2024

@georged example if possible...please.... What do i need to modify in above code?

from php-crm-toolkit.

georged avatar georged commented on May 24, 2024

@cbpatel17

I'm sorry but we have very limited resources to provide free full guidance how to use Dynamics CRM. Here is C# example: https://msdn.microsoft.com/en-us/library/gg328429.aspx, hopefully you can figure out how to do it in php.

from php-crm-toolkit.

cbpatel17 avatar cbpatel17 commented on May 24, 2024

thanks....

$case = $client->entity( 'incident', $contactKey);
if($case->exists)
{
    $annotation = $client->entity( 'annotation');//, $contactKeyValue);
    $annotation->objectid=$case;
    $annotation->notetext=$note;

    if(isset($_FILES['test_file']))
    {
     
         $data = file_get_contents($_FILES['test_file']['tmp_name']);
        $data = base64_encode($data);
         $annotation->filename=$_FILES['test_file']['name'];
         $annotation->documentbody=$data;
         $annotation->mimetype=$_FILES['test_file']['type'];
         //$annotation->filesize=$_FILES['test_file']['size'];
         //$annotation->userFile=base64_encode($_FILES['test_file']);
    }

    $annotation->subject=$note_title;
    $annotationId = $annotation->create();

    echo json_encode(array('status'=>0,'results'=>$annotationId,'message'=>'Note Created successfully!'));exit;
   
}

from php-crm-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.