How to save a global set’s content?
Try using setContentFromPost, as mentioned in this answer from Brandon.

$content = array(
    'fieldHandle' =&gt; 'value',
);

$globalSet-&gt;setContentFromPost($content);
craft()-&gt;globals-&gt;saveContent($globalSet);